#undef malloc
#undef realloc
#undef free
#define malloc(x) test_malloc(x, __FILE__, __LINE__)
#define realloc(x, y) test_realloc(x, y, __FILE__, __LINE__)
#define free(x) test_free(x, __FILE__, __LINE__)
#define xmalloc(x) test_xmalloc(x, __FILE__, __LINE__)
#define xrealloc(x, y) test_xrealloc(x, y, __FILE__, __LINE__)

void *test_malloc HARG3(size_t, x, char *, filename, unsigned, linenum);
void *test_realloc HARG4(void *, old, size_t, x, char *, filename, unsigned, linenum);
void test_free HARG3(void *, old, char *, filename, unsigned, linenum);

void *test_xmalloc HARG3(size_t, x, char *, filename, unsigned, linenum);
void *test_xrealloc HARG4(void *, old, size_t, x, char *, filename, unsigned, linenum);

/* For emacs:
 * Local Variables:
 * tab-width: 8
 * End:
 */
